How to manage a redirect request after a jQuery Ajax call